{% extends "index.html" %}
{% block title %}自动安装系统{% endblock %}
{% block active_home %}class="active"{% endblock %}
{% block active_nav_task_finish %}class="active"{% endblock %}
{% block body %}
<div class="container">
  <div class="row">
    <!--等待队列 span6-->
    <div class="span12">
      <table class="table table-hover table-bordered">
          <thead>
              <!--<td align='center'>等待队列</td> -->
              <tr><th>MAC地址</th><th>当前状态</th><th>IP</th><th>password</th><th>时间</th><th>操作</th></tr>
          </thead>
          <tbody>
                {% for i in servers %}
                <tr>
                  <td><a onClick=taskinfo({{ i.id }})>{{ i.mac }}</td>
                  <td>{{ i.message }}</td>
                  <td>eth0: {{ i.eth0 }}<br>eth1: {{ i.eth1 }}</td>
                  <td>{{ i.password }}</td>
                  <td>{{ i.timestrap|date:"Y-m-d H:i" }}</td>
                  <td><a class="btn" href="/kis_cobbler/reset?id={{ i.id }}">重置</a></td>
                </tr>
                {% endfor %}
          </tbody>
      </table>
    </div>
  </div>
</div>
<div id="messagemodal" class="modal hide fade">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
    <h3>任务详细</h3>
  </div>
  <div class="modal-body" id="messagebody">
  </div>
  <div class="modal-footer">
    <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
  </div>
</div>
{% endblock %}